<template>
  <el-card class="box-card el-card-flex componentsCalendar cardHover">
    <div class="schedule">
      <h1 class="schedule-title"><span class="month">August</span><span class="year">2019</span></h1>
      <ul class="schedule-cont">
        <li class="schedule-date">一<br>5</li>
        <li class="schedule-date">二<br>6</li>
        <li class="schedule-date">三<br>7</li>
        <li class="schedule-date">四<br>8</li>
        <li class="schedule-date">五<br>9</li>
        <li class="schedule-date">六<br>10</li>
        <li class="schedule-date">日<br>11</li>
      </ul>
    </div>
    <ul class="news-list">
      <li class="news-li notice-li" style="padding-left:5px;">
        <i class="el-icon-circle-plus list-icon"></i>添加我的日程
      </li>
      <li class="news-li notice-li">
        <i class="list-dot active"></i>微服务技术中台汇报演示
      </li>
      <li class="news-li notice-li">
        <i class="list-dot"></i>党建会议交流学习
      </li>
      <li class="news-li notice-li">
        <i class="list-dot"></i>“安全责任在我心”主题学习
      </li>
      <li class="news-li notice-li">
        <i class="list-dot"></i>下班打卡，填写工时
      </li>
    </ul>
    <i @click="handDelProject" class="el-icon-close closeIcon"></i>
  </el-card>
</template>
<script>
export default {
  data () {
    return {}
  },
  methods: {
    // 删除任意一个布局里的项目
    handDelProject () {
      this.$emit('handDelProject')
    },
  }
}
</script>
<style lang="scss">
.componentsCalendar {
  padding: 10px 10px 0;
  margin-bottom: 10px;
  position: relative;
  left: 0;
  top: 0;
  .closeIcon {
    position: absolute;
    right: 0;
    top: 0;
    padding: 3px;
    border-radius: 50%;
    background-color: #eeeeee;
    display: none;
  }
  .schedule {
		width: 100%;
		min-height: 100px;
    color: #ffffff;
		padding-bottom: 10px;
		background: linear-gradient(to bottom right, #209CFF, #78C4FF);
    .schedule-title {
      float: left;
      width: 100%;
      padding: 10px 10px 0;
      box-sizing: border-box;
      .month {
        font-size: 20px;
      }
      .year {
        font-size: 14px;
        padding-left: 10px;
      }
    }
    .schedule-cont {
      float: left;
      width: 100%;
      display: table;
      .schedule-date {
        display: table-cell;
        text-align: center;
        vertical-align: middle;
      }
    }
	}
  .news-list {
    width: calc(100% + 25px);
    height: 100%;
    overflow: auto;
    cursor: pointer;
    .news-li {
      width: calc(100% - 25px);
      line-height: 25px;
      font-size: 12px;
      position: relative;
      padding: 5px;
      border-bottom: 1px solid #F4F6FC;
      box-sizing: border-box;
      display: table;
      text-align: left;
      &:hover {
        color: #409EFF;
        text-decoration: underline;
      }
    }
    .notice-li {
      font-size: 12px;
      color: #333333;
      &:hover {
        background-color: #F4F6FC;
      }
    }
    .list-icon {
      margin-right: 5px;
      color: #1890FF;
      font-size: 16px;
      vertical-align: middle;
    }
    .list-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
      vertical-align: middle;
      border: 1px solid #1890FF;
      box-sizing: border-box;
      margin-right: 10px;
    }
    .list-dot.active {
      background-color: #1890FF;
    }
  }
}
.cardHover {
  &:hover {
    background-color: rgba(254,227,78,.1);
    border: 1px dashed #fb9c68;
    .closeIcon {
      display: block;
    }
  }
}
</style>